package com.yztl.mapper.client;

import com.yztl.pojo.Client;
import com.yztl.pojo.Order;
import com.yztl.pojo.Product;
import com.yztl.pojo.Status;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ClientMapper {
    Client Clientlogin(@Param("customer_name")
    String customer_name, @Param("customer_password") String customer_password);
    int getCount(int id);
    List<Order> getPageProduct(@Param("pageIndex") int pageIndex,
                               @Param("pagesize")int pagesize,
                               @Param("id") int id);

    List<Status>getStatus();

    List<Product> getProduct();

    int deleteOrder(@Param("id")int id,@Param("state") int order_state);

    Order selOneOrder(int id);

    int updateOrder(Order order);

    int addOrder(Order order);
}
